using Asion.Dapper.NetCore.Extend;

var builder = WebApplication.CreateBuilder(args);

// Add configration



builder.Services.Configure<ConnectionOptions>(builder.Configuration.GetSection("WidgetOptions"));
// Add services to the container.

builder.Services.AddControllers();

builder.Services.AddDatabaseAccessor();

var app = builder.Build();

// Configure the HTTP request pipeline.

app.UseAuthorization();

app.MapControllers();

app.Run();
